<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
	<div>
		<form:form action="/MavenExample/createuser" modelAttribute="user">
			<div>
				<form:input path="userId" type="hidden" />
			</div>
			<div>
				Login:
				<form:input path="login" />
			</div>
			<div>
				Password:
				<form:input path="password" />
			</div>
			<div>
				<select name="roleId">
					<c:forEach items="${roles}" var="role">
						<option value="${role.roleId}">${role.role}</option>
						</c:forEach>
				</select>
			</div>
			<div>
				<input type="submit" value="Submit" />
			</div>
		</form:form>
	</div>
</body>
</html>